<?php

use app\helpers\SettingHelper;
use app\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;

AppAsset::register($this);

/* @var $content */
/* @var $this \yii\web\View */

?>
<?php $this->beginPage(); ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="<?= Yii::$app->charset; ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="google-site-verification" content="K4Y5OcpjyRuEB8T8AOO1qOxPgQsIGIvF6HtSQARYSl0" />
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title); ?> - <?= SettingHelper::get('web_name'); ?></title>
<?php $this->head(); ?>

<!--[if lte IE 9]>
<meta http-equiv="refresh" content="0; url='<?= Url::to(['/ie']); ?>'" />
<![endif]-->
</head>
<body>
<?php $this->beginBody(); ?>
<div class="header fixed" id="header">
    <div class="container">
        <div class="columns">
            <div class="column col-3 col-xl-2 col-lg-3 col-sm-4 ">
                <a href="<?= Url::to(['/']); ?>" class="brand"><?= SettingHelper::get('web_name'); ?></a>
            </div>
            <div class="column col-9 col-lg-9 col-sm-8 col-xl-10">
                <?= \app\widgets\AppMenu::widget(); ?>
                <div class="sidebar-toggle">
                    <i class="iconfont icon-menu"></i>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="main" id="main">
    <?= $content; ?>
</div>

<div class="footer" id="footer">
    <div class="container text-center">
        <div class="copyright">Copyright © 2018 Avhub8</div>
    </div>
</div>
<?php $this->endBody(); ?>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?2532052c098e0f98cd44d14bcc3af3d6";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>

<script type="text/javascript">
    var adfly_id = 7177526;
    var popunder_frequency_delay = 0;
</script>
<script src="http://cdn.adf.ly/js/display.js"></script>
</body>
</html>
<?php $this->endPage(); ?>
